import request from '@/router/axios';

export const findGeneralSetup = (row) => { // 查询常规设置-userId
  return request({
    url: '/api/blade-email/common-set',
    method: 'get',
    data: row
  })
}

export const findLabel = (row) => { // 查询用户所有标签
  return request({
    url: '/api/blade-email/label',
    method: 'get',
    data: row
  })
}

export const addLabel = (row) => { // 增加标签
  return request({
    url: '/api/blade-email/label',
    method: 'post',
    data: row,
  })
}
export const fileStreamDown = (id) => { // 附件下载文件流
  return request({
    url: '/api/blade-email/emailHtmlpic/downLoad',
    method: 'get',
    responseType: 'blob',
    params: {id}
  })
}

